package com.xyoto.community.entity.main;

import com.xyoto.community.constant.CommonConstant;
import com.xyoto.community.entity.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author lin
 * @Date 2021/10/1 23:02
 */
@Data
@ApiModel("用户表")
public class User extends Base {

    @ApiModelProperty("用户小程序唯一凭证")
    private String openid;

    @ApiModelProperty("微信平台统一认证")
    private String unionid;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("头像")
    private String avatarUrl;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("真实姓名")
    private String name;

    @ApiModelProperty("学院库")
    private Integer collage;

    @ApiModelProperty("专业库")
    private Integer major;

    @ApiModelProperty("学号")
    private Long studentNo;

    @ApiModelProperty("生日")
    private Date birth;

    @ApiModelProperty("性别（0-未知 1-男 2-女）")
    private Short gender;

    @ApiModelProperty("个性签名")
    private String signature;

    @ApiModelProperty("所在国家")
    private String country;

    @ApiModelProperty("所在省份")
    private String province;

    @ApiModelProperty("所在城市")
    private String city;

    @ApiModelProperty("县")
    private String county;

    @ApiModelProperty("氪金等级")
    private Short vip;

    @ApiModelProperty("学生认证（1-未认证 2-认证）")
    private Short authenticationStatus;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户热度值")
    private Integer hot;

    @ApiModelProperty("用户禁止状态")
    private Short disableStatus;

    @ApiModelProperty("用户头衔id")
    private Integer userTitleId;

    @ApiModelProperty("头衔名称id")
    private Integer titleNameId;

    @ApiModelProperty("头衔logo的id")
    private Integer titleLogoId;

    public User() {
        this.signature = CommonConstant.DEFAULT_SIGNATURE;
    }
}
